package com.example.reflect;

public class Person {
    private String name;
    private int age;
    private String email;

    public Person() {
    }

    public Person(String name, int age, String email) {
        this.name = name;
        this.age = age;
        this.email = email;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void showInfo(){
        System.out.println(name+"----"+age+"-----"+email);
    }

    private int sum(int number){
        int total=0;
        for(int i=1;i<=number;i++){
            total+=i;
        }
        return total;
    }

    public  static  void  say(String str) {
        System.out.println( "我在说： "  + str);
    }
}
